package com.patrol.auth.config;

//public class LoginHandlerInterceptor implements HandlerInterceptor {
//    @Override
//    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
//        //用户登录成功后,应该有自己的session
//        Object session = request.getSession().getAttribute("LoginUser");
//        if (session == null) {
//            request.setAttribute("msg", "权限不够,请先登录");
////            request.getRequestDispatcher("/index.html").forward(request, response);
//            return false;
//        } else {
//            return true;
//        }
//    }
//}
